package com.hualan.zhsq.entity.system;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @ClassName Role
 * @Description TODO
 * @Author ZheRan
 * @Date 2025年08月06日 下午3:51
 * @Version 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("role_management")
public class Role {
    @TableId
    private Long id;
    private String roleName;//角色名称
    private String roleDescription;//角色描述
    private Integer rolePermissionId;//角色权限ID
    private Integer status;//状态
    @TableLogic
    private Integer del;

    @TableField(exist = false)
    List<Permission> permissions;//权限
}
